package com.tc;

import com.tc.pojo.Customer;
import com.tc.service.CustomerService;
import com.tc.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/***
 * @Author 徐庶   QQ:1092002729
 * @Slogan 致敬大师，致敬未来的你
 */
@RestController
public class CustomerController {

    @Autowired
    CustomerService customerService;
    @Autowired
    private TestService testService;

    @RequestMapping("/customer/all")
    public Iterable<Customer> getAll() throws InterruptedException {
        return testService.getAll();
    }

    @RequestMapping("/customer/all2")
    public Iterable<Customer> getAll2(){
        return customerService.getAll2();
    }
}
